Solving a multi step equation with parenthesis within brackets